package MyStaticProxy;

public class ProxyTest {
    public static void main(String[] args) {

        //被代理类
        UserDaoImpl userDao = new UserDaoImpl();

        //代理类对象
        Company company =new Company(userDao);

        company.work();
        company.say();

    }
}
